﻿//----------------//
var Icon = "#fEffect/CharacterEff/1112924/0/0#";    // 黄星
var IconR = "#fEffect/CharacterEff/1112925/0/0#";  //  蓝星
var IconS = "#fEffect/CharacterEff/1112926/0/0#"; //   红星
//---------------//

function start() {
    status = -1;
    action(1, 0, 0);
}
function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var txt = IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconS + IconR + IconS + IconR + "\r\n\r\n\r\n";
        txt += "　　 #L0##r" + IconS + " 商城系统　#b※　单击则进入商城　※#l#k\r\n\r\n";
        txt += "　　 #L1##r" + IconS + " 拍卖系统　#b※　单击则进入拍卖　※#l#k\r\n\r\n";
        txt += "　　 #L2##d" + IconS + " 免费系统　#b※　单击刷任何东西　※#l#k\r\n\r\n\r\n\r\n";
        txt += IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconR + IconS + IconS + IconR + IconS + IconR + "\r\n ";
        cm.sendSimple(txt, 2490002);
    } else if (status == 1) {
        switch (selection) {
            case 0://商城系统
                cm.dispose();
                 cm.enterCS();
                break;
            case 1://拍卖系统
                cm.dispose();
                cm.openNpc(9900004);
                break;
            case 2://拍卖系统
                cm.dispose();
                cm.openNpc(1002009);
                break;
        }
    }
}
